﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" Debug="true" CodeBehind="ListProduct.aspx.cs" Inherits="ShoppingCartWEB.ListProduct" CodeFile="ListProduct.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="Styles/Site.css" rel="stylesheet" type="text/css" />
    <title>PRoduct</title>
</head>
<body>
    <div id = "container">
    <form id="form1" runat="server">
     
        <div id="banner">
        
        
        </div>
        <div id="main_nav">
            <ul>
                <li><a href="#">Home</a></li>
                <li><a href="#">About</a></li>
                <li><a href="#">Search</a></li>
                <li><a href="#">Product</a></li>
                <li><a href="#">C0912L</a></li>
                <li><a href="#">HungVM</a></li>
            </ul>
        </div>

        <div id="content">
            <asp:DataList ID="dlProduct" runat="server" RepeatColumns="3" 
                RepeatDirection="Horizontal" onitemcommand="dlProduct_ItemCommand" 
                DataKeyField="ProductID">
                <HeaderStyle HorizontalAlign="Left" BackColor="#3D7169" ForeColor="#FFFFFF" />
				<FooterStyle HorizontalAlign="Right" BackColor="#6C6B66" ForeColor="#FFFFFF" />
                <AlternatingItemStyle />
                <ItemTemplate>
                    <div class="item" style="padding:15,15,15,15">
                        <div class="item_image"><asp:Image runat="server" CssClass="" ImageUrl ='<%# DataBinder.Eval(Container.DataItem, "imageLink") %>' ImageAlign="Middle" /></div>
                        <div class="item_info">
                            <p><span>Name:</span> <%# DataBinder.Eval(Container.DataItem,"ProductName") %></p>
                            <p><span>Supplier:</span> <%# DataBinder.Eval(Container.DataItem, "Supplier.CompanyName")%></p>
                            <p><span>Price: </span> <%# DataBinder.Eval(Container.DataItem,"ProductPrice","{0:c}") %></p>
                        </div>
                        
                        <!--<asp:Button Text ="Add Cart" runat="server" PostBackUrl="~/Cart.aspx" CommandName="AddCart" /> -->
                        <asp:ImageButton ID="btnAddCart" class="item_button_cart" runat="server" CommandName="AddToCart" ImageUrl="~/Images/AddToCard.png"/>
                    
                    </div>
                </ItemTemplate>
            </asp:DataList>
        </div> <!-- End Content -->
    </form>
    </div> <!--End Container -->
</body>
</html>
